

function hitung_semua_klaim(){
	var ina=eval($("#total_ina").val());
	var obat=eval($("#total_obat").val());
	
	//buat tanggungan
	var obat_awal=eval($("#total_obat_awal").val());
	var ina_awal=eval($("#total_ina_awal").val());

	//alert(lab_awal);
	var total=ina+obat;
	var total_awal=ina_awal+obat_awal;
	var selisih=total_awal-total;
	//alert(total_awal);
	$("#target_total_semua").html(number_format(total_awal, 0, ',','.'));
	$("#target_ditanggung_semua").html(number_format(total, 0, ',','.'));
	$("#target_selisih_semua").html(number_format(selisih, 0, ',','.'));
	
}

$(document).ready(function(){
	hitung_semua_klaim();

});